
export default{
    save(dataname,data){
        window.localStorage.setItem(dataname,JSON.stringify(data))
    },
    fetch(dataname){
        return JSON.parse(window.localStorage.getItem(dataname)||'[]'||'{}')
    }
}